package com.muyu.controller;

import com.muyu.service.CommonService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

/**
 * @ClassName: CommonController
 * @Author: Zirun.Xin
 * @Date: 2025/4/29 下午2:33
 * @Version: 1.0
 * @Description: 公共控制层
 */
@RestController
@RequiredArgsConstructor
@RequestMapping(value = "/api/v1/common")
public class CommonController {

    /**
     * 公共业务层
     */
    private final CommonService commonService;

    /**
     * 所有问题反馈截图导出zip(压缩包)
     *
     * @param response http响应
     */
    @GetMapping(value = "/export-questions-images")
    public void exportQuestionsImages(HttpServletResponse response) {
        commonService.exportQuestions(response);
    }
}
